package com.gklyj.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gklyj.mapper.user_zhanghaoMapper;
import com.gklyj.pojo.user_zhanghao;
import com.gklyj.service.user_zhanghaoService;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional //实现事务的时候要在业务类中加入该注解
public class user_zhanghaoServiceImpl  extends ServiceImpl<user_zhanghaoMapper, user_zhanghao> implements user_zhanghaoService {

    @Autowired
    user_zhanghaoMapper user_zhanghaoMapper;

    @Override
    public Integer findZ_id(Integer u_id) {
        return user_zhanghaoMapper.findZ_id(u_id);
    }

    @Override
    public Boolean deleteByU_id(Integer u_id) {
        return user_zhanghaoMapper.deleteByU_id(u_id);
    }
}
